package cn.zyjblogs.starter.sms.common;

public enum SmsEnum {
    ALI_SMS("aliyun"),
    TEN_SMS("tencent");
    private String name;

    SmsEnum(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public static SmsEnum findByName(String name) {
        SmsEnum[] values = SmsEnum.values();
        for (SmsEnum value : values) {
            if (value.getName().equals(name)) {
                return value;
            }
        }
        return null;
    }
}
